package com.mspbots.core.wise.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mspbots.core.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2019/6/20
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(autoResultMap = true)
public class Tenant extends BaseEntity {

    private String name;
    private String shortName;
    private String url;
    private String description;
    private String mailPostfix;
    private Short statusId;
    private LocalDateTime createDate;
    private String microsoftId;
    private String source;
    private String psa;
    private String phoneNumber;
    private Boolean receiveEmail;
    private String registEmail;
    private Boolean teamsAuthority;
    private String timezoneFull;
    private String timezoneShort;
    private String timezoneOffset;

    @TableField(exist = false)
    private List<TenantConfiguration> configuration;

    private transient String username;
    private transient String password;
    private transient String lastName;
    private transient String firstName;
    private transient int userCount;
    private transient LocalDateTime lastUseTime;
    private transient String status;
}
